home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl42 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  4.3 KB  |  98 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <!DOCTYPE xsl:stylesheet [
  5.     <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
  6. ]>
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  8. &externalScript;
  9.     <xsl:template match="/">
  10.         <HTML>
  11.             <xsl:apply-templates/>
  12.         </HTML>
  13.     </xsl:template>
  14.     <xsl:template match="photos">
  15.         <xsl:apply-templates/>
  16.     </xsl:template>
  17.     <xsl:template match="album">
  18.         <xsl:apply-templates select="imagelist"/>
  19.     </xsl:template>
  20.     <xsl:template match="imagelist">
  21.         <xsl:apply-templates select="imageinfo"/>
  22.     </xsl:template>
  23.     <xsl:template match="imageinfo">
  24.         <xsl:element name="ixfile">
  25.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  26.             <head>
  27.                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28.             </head>
  29.                     
  30. <body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="graphics/wed1.jpg" link="#ECCDCA" vlink="#ECCDCA">
  31. <table width="760"><tr><td width="150" valign="top"><br kludge=""/></td><td><font face="Arial" size="5"><div align="center"><xsl:eval>GetAlbumTitle()</xsl:eval>
  32. </div></font><table border="0" cellspacing="6" cellpadding="6" align="center">
  33.                             <tr><td> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> <xsl:apply-templates select="previous"/>
  34.                                         </font><font face="Arial, Helvetica, sans-serif" size="2"><a href="index.htm"><b>Home</b></a></font><font face="Arial, Helvetica, sans-serif" size="2" color="white"> <xsl:apply-templates select="next"/>
  35.           </font></div></td></tr><tr>
  36.                                 <td>
  37.                                     <div align="center"><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  38.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  39.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  40.                             </tr><td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2">                                                                                <xsl:apply-templates select="description">
  41.                                             <!-- recursively apply this template to them -->
  42.                                             <xsl:template>
  43.                                                 <xsl:copy>
  44.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  45.                                                 </xsl:copy>
  46.                                             </xsl:template>
  47.                                         </xsl:apply-templates>
  48.                             </font><br kludge=""/><xsl:choose>
  49.                             <xsl:when test="audio_info/@fname[. != '']">
  50.                                 
  51.                                         <xsl:apply-templates select="audio_info"/>
  52.                                 </xsl:when>
  53.                                 <xsl:otherwise>
  54.                                     <img border="0" src="graphics/dot.gif"/>
  55.                                 </xsl:otherwise>
  56.                             </xsl:choose><xsl:choose>
  57.                                                     <xsl:when test="movie_info/@fname[. != '']">
  58.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  59.                                                     </xsl:when>
  60.                                                     <xsl:otherwise>
  61.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  62.                                                     </xsl:otherwise>
  63.                                                 </xsl:choose></div></td>
  64.                         </table></td></tr></table>
  65.  
  66.                     
  67.                     
  68.                         </body>
  69.                     
  70.             </xsl:element>
  71. </xsl:template>
  72.  
  73.     <xsl:template match="previous">
  74.         <xsl:value-of/>
  75.         <xsl:choose>
  76.             <xsl:when match="previous[@fname != '']">
  77.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><b>Back</b></A>
  78.             </xsl:when>
  79.             <xsl:otherwise></xsl:otherwise>
  80.         </xsl:choose>
  81.     </xsl:template>
  82.     <xsl:template match="next">
  83.         <xsl:value-of/>
  84.         <xsl:choose>
  85.             <xsl:when match="next[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><b>Next</b></A></xsl:when>
  86.             <xsl:otherwise></xsl:otherwise></xsl:choose></xsl:template>
  87.  
  88.     <xsl:template match="audio_info">
  89.         <A>
  90.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  91.             <img border="0" src="graphics/sound.gif" width="24" height="28"/></A></xsl:template>
  92.     <xsl:template match="movie_info">
  93.         <A>
  94.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  95.             <img border="0" src="graphics/movie.gif" width="25" height="28"/></A></xsl:template>
  96.  
  97. </xsl:stylesheet>
  98.